let JSONResponse = require("../commons/JSONResponse")
let settings = require("../commons/settings")

/**
 * 获取录播图对象数组
 * @param req 
 * @param resp 
 */

exports.list = (req, resp) => {
    // 示例数据，实际应从数据库查询
    const imageList = [
        { id: 0, img: "http://192.168.19.99:3000/public/images/p1d01.png" },
        { id: 1, img: "http://192.168.19.99:3000/public/images/p1d02.png" },
        { id: 2, img: "http://192.168.19.99:3000/public/images/p2d01.png" }
    ]
    resp.json(JSONResponse.success(imageList, 200, "获取轮播图列表成功"));
};